package com.atguigu.gmall.payment.service;

import com.alipay.api.AlipayApiException;

/**
 * @author atguigu-mqx
 */
public interface AlipayService {

    //  生成二维码！
    String createAlipay(Long orderId) throws AlipayApiException;

    /**
     * 退款
     * @param orderId
     * @return
     */
    Boolean refund(Long orderId);

    /**
     * 关闭支付宝交易记录
     * @param orderId
     * @return
     */
    Boolean closePay(Long orderId);

    /**
     * 查询支付宝交易记录
     * @param orderId
     * @return
     */
    Boolean checkPayment(Long orderId);

}
